package com.easthome.mapper;

import com.easthome.entity.Goods;
import com.easthome.pojo.form.GoodsPageConForm;
import com.easthome.pojo.vo.GoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cxiaoy
 * @Date 2022/10/14 13:59
 */
public interface GoodsMapper {

    public List<GoodsVO> goodsList() ;

    Goods goodsById(Integer id);

    int updateGoods(Goods goods);

    int addGoods(Goods goods);

    int deleteGoods(Integer goodsId);

    int deleteBatch(@Param("ids")List<Integer> ids);

    List<Goods> getGoodsList();

    List<Goods> getGoodsListPageCon(GoodsPageConForm goodsPageConForm);
}
